<?php

namespace app\admin\model;

class AuthorityGroup extends BaseModel
{
    public function getMealAll($id = 0)
    {
        if(!empty($id)){
            $where = ['status'=>config('code.status_normal'),'id'=>$id];
            $data = $this->where($where)->find();
        }else{
            $where = ['status'=>config('code.status_normal')];
            $data = $this->where($where)->select();
        }
        return $data;
    }
}
